<?php

namespace App\Model;

use Illuminate\Database\Eloquent\Model;

class Tags extends Model
{
    protected $table = 'tags';
    protected $primaryKey = 'id';
    public $timestamps = true;

    public function findArticles ()
    {
        return $this->belongsToMany('App\Model\Articles', 'articles_tags', 'tag_id', 'article_id');
    }
    
}
